@extends('Admin.Layouts.index')
@section('content')
	<div>
	@if (count($errors) > 0)
                <div class="alert alert-danger">
                    <ul>
                    @if(is_object($errors))
                        @foreach ($errors->all() as $error)
                            <li class="alert alert-error">{{ $error }}</li>
                        @endforeach
                    @else
                          <li class="alert alert-error">{{ $errors }}</li>
                    @endif  
                    </ul>
                </div>
            @endif
		<form action="{{url('admin/user/'.$user['id'])}}" class="form-horizontal" method="post" >
			{{csrf_field()}}
			<input type="hidden" name="_method" value="PUT">
			<div class="control-group" >
				<label class="control-label" for="focusedInput">
					<font style="vertical-align: inherit;">
						<font style="vertical-align: inherit;">用户名</font>
					</font>
				</label>
				<div class="controls">
				  <input class="input-xlarge focused" id="focusedInput" name="username" type="text" value="{{$user['username']}}">
				</div>
			 </div>
			 	<div class="control-group" >
				<label class="control-label" for="focusedInput">
					<font style="vertical-align: inherit;">
						<font style="vertical-align: inherit;">密码</font>
					</font>
				</label>
				<div class="controls">
				  <input class="input-xlarge focused" id="focusedInput" name="password" type="password" value="">
				</div>
			 </div>
			 <div class="control-group" >
				<label class="control-label" for="focusedInput">
					<font style="vertical-align: inherit;">
						<font style="vertical-align: inherit;">新密码</font>
					</font>
				</label>
				<div class="controls">
				  <input class="input-xlarge focused" id="focusedInput" name="newpass" type="password" value="">
				</div>
			 </div>
			 <div class="control-group" >
				<label class="control-label" for="focusedInput">
					<font style="vertical-align: inherit;">
						<font style="vertical-align: inherit;">确认新密码</font>
					</font>
				</label>
				<div class="controls">
				  <input class="input-xlarge focused" id="focusedInput" name="repass" type="password" value="">
				</div>
			 </div>
			 	<div class="control-group" >
				<label class="control-label" for="focusedInput">
					<font style="vertical-align: inherit;">
						<font style="vertical-align: inherit;">手机号</font>
					</font>
				</label>
				<div class="controls">
				  <input class="input-xlarge focused" id="focusedInput" name="phone" type="text" value="{{$user['phone']}}">
				</div>
			 </div>
			 	<div class="control-group" >
				<label class="control-label" for="focusedInput">
					<font style="vertical-align: inherit;">
						<font style="vertical-align: inherit;">邮箱</font>
					</font>
				</label>
				<div class="controls">
				  <input class="input-xlarge focused" id="focusedInput" name="email" type="email" value="{{$user['email']}}">
				</div>
			 </div>
			 <input type="submit" value="修改" class="btn-info btn-sm" style="margin-left: 200px;">
			
		</form>
	</div>
@endsection